<?php
set_time_limit(0);
ini_set("memory_limit","500M");
include_once('bootstrap.php');
Doctrine_Core::dropDatabases();
Doctrine_Core::createDatabases();
Doctrine_Core::createTablesFromModels('models');

$admin = new Usuario();
$admin->nombre = 'admin';
$admin->pass = 'admin';
$admin->save();

$home = new Home();
$home->save();

$about = new About();
$about->me = 'Lorem ipsum dolor sit amet, consectetuer.';
$about->save();

$finearts = new Fineart();
$finearts->texto1 = 'Lorem ipsum dolor sit amet, consectetuer.';
$finearts->texto2 = 'Lorem ipsum dolor sit amet, consectetuer.';
$finearts->texto3 = 'Lorem ipsum dolor sit amet, consectetuer.';
$finearts->save();

$photographies = array ('Fine Art', 'Projects', 'Commercial');
foreach ($photographies as $i){
    $n = new Photography();
    $n->titulo = $i;
    $n->descripcion = 'Lorem ipsum dolor sit amet, consectetuer.';
    $n->save();
}
?>
